-O cq8401.img-N // here-E 0x20000 must be equal to the erasesize of your chip./Flashcp cq8401.img/dev/mtd0 // copy cq8401.img File System to/dev/mtd0 PartitionOf course, the function of this command is similar to dd If =/tmp/fs. IMG of =/dev/mtd0.
Command: nandwritePurpose: Write Data to NAND FlashUsage:Nandwrite [Option] mtd_device inputfile-A, -- autoplace use auto OOB Layout-J, -- jffs2 force jffs2 OOB layout (legacy support)-Y, -- yaffs force yaff
, such as/dev/mtd0
Eg:Filename: mkfs. jffs2-E 0x20000-D cq8401-O cq8401.img-N // here-E 0x20000 must be equal to the erasesize of your chip./Flashcp cq8401.img/dev/mtd0 // copy cq8401.img File System to/dev/mtd0 PartitionOf course, the function of this command is similar to dd If =/tmp/fs. IMG of =/dev/mtd0.
Command: nandwritePurpose: Write Data to NAND FlashUsage:Nandwrite [Option] mtd_device inputfile-A, -- autoplace use auto OOB Layout-J, -- jffs2
multiple of (2k+64).
Note: The first available (not bad block) block on the partition when burning the Yaffs file system image is skipped.
This is also reflected in our code, that is, the OPTS.SKIPFIRSTBLK = 1 mentioned in the preceding code; /* Skip the first available block * *
However, because the u-boot written in Nand_write_options itself is not considered yaffs, so nand_write_options does not have skipfirstblk items, so we need to manually add. So we need to make the following modificatio
,drawgrid is responsible for drawing the map grid, starting from the origin by default, to draw the mesh only need to draw staggered horizontal and vertical lines, Here we use the DrawLine method under the Gizmos class we first create a meshroot empty object in the scene, attach the Gridmap script to the object, let's look at the effect of the drawing below:Because gizmos provides us with a visual debug function, we can see the actual effect directly in the editor window, so that we use unity to
startLock: Write protectionEg:./flash_erase/dev/mtd0 0x40000 5//Erase 5 pieces of data from 0x40000 on mtd0 partition, 128k/blockCommand: Flash_eraseallFunction: Erase the entire partition's data, but also make bad block detectionUsage:Flash_eraseall [OPTION] Mtd_device-Q,--quiet does not display print information-j,--JFFS2 a JFFS2 format partitionEg:./flash_eraseall-j/dev/mtd0Command: FLASHCPFunction: Copy data to FlashUsage:usage:flashcp [v |--verbose]flashcp-h | --helpFileName: Data to be wr
Contact Us
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.